package com.chahu.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import com.chahu.entity.Order;

import java.util.List;

public interface OrderMapper {
    
    @Select("select * from orders limit #{arg0}, #{arg1}")
    List<Order> page(int page, int pageSize);
    
    @Delete("delete from orders where id = #{arg0}")
    void deleteById(int id);
}
